﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

///<summary>
///
///</summary>
public class AppStart : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        Screen.SetResolution(1080,1920,true);
        Application.targetFrameRate = 60;
        AppFacde facde = new AppFacde();
        facde.StartUp();
		StateManager.GetInstance.Init();
		AudioManager.GetInstance.Init();
		LoadData();
		DontDestroyOnLoad(GameObject.Find("Audio"));
	}
	void LoadData()
	{
		for(int i =0; i < 6; i++)
		{
			PropNum str = (PropNum)i;
			if (PlayerPrefs.HasKey(str.ToString()))
			{
				GameConfig.PropList.Add(str.ToString());
			}
		}
		Debug.Log("拥有道具" + GameConfig.PropList.Count + "种");
	}

	
}
